import { createApp } from "vue";
import { createPinia } from "pinia";
import { ImagePreview } from "vant";
import { Form, Field, CellGroup } from "vant";

import App from "./App.vue";
import router from "./router";

import "normalize.css";
import "./style/base.scss";

const app = createApp(App);
app.use(ImagePreview);

// 注册时可以配置额外的选项
import { Dialog } from "vant";

// 全局注册
app.use(Dialog);

app.use(createPinia());
app.use(router);

app.mount("#app");

app.use(Form);
app.use(Field);
app.use(CellGroup);
